package ru.rchervot.sanasar.client.model;


import com.google.gwt.user.client.rpc.IsSerializable;

public abstract class AbstractSearchResultsItem implements SearchResultsItem, IsSerializable {
	public AbstractSearchResultsItem() {
		super();
	}
	
	private Integer itemID;

	@Override
	public Integer getItemID() {
		return itemID;
	}

	public void setItemID(Integer itemID) {
		this.itemID = itemID;
	}

	private ItemObject itemObject;

	public ItemObject getItemObject() {
		return itemObject;
	}

	public void setItemObject(ItemObject itemObject) {
		this.itemObject = itemObject;
	}
	
	/**
     * Determines whether another object is equal to this Company.  The result is 
     * <code>true</code> if and only if the argument is not null and is a Company object that 
     * has the same itemID field values as this object.
     * 
     * 
     * 
     * <code>false</code> otherwise.
     */
    
//    public boolean equals(Object object) {
//        // TODO: Warning - this method won't work in the case the itemID fields are not set
//        if (!(object instanceof SearchResultsItem)) {
//            return false;
//        }
//        
//        SearchResultsItem other = (SearchResultsItem)object;
//        if (this.itemID != other.itemID && (this.itemID == null || !this.itemID.equals(other.itemID))) return false;
//        return true;
//    }
//    
//    /**
//     * Returns a hash code value for the object.  This implementation computes 
//     * a hash code value based on the itemID fields in this object.
//     * 
//     * 
//     */
//    
//    public int hashCode() {
//        int hash = 0;
//        hash += (this.itemID != null ? this.itemID.hashCode() : 0);
//        return hash;
//    }
}
